import os


src_path = './grasp_suction_dataset/suction_15000/'
for root, dirs, files in os.walk(src_path):
    for filename in files:
        if filename.endswith('.pickle'):
            filepath = os.path.join(root, filename)
            new_filepath = filepath.replace('first_test_', 'final_test_')

            os.rename(filepath, new_filepath)

